#import "dfhgwhruebvhrheyerroneousmaintainViewController.h"
@interface dfhgwhruebvhrheyerroneousmaintainViewController ()
@end
@implementation dfhgwhruebvhrheyerroneousmaintainViewController {
	UIView *bgView;
	UIImageView *icon;
	UILabel *titleLabel;
	UILabel *desLabel;
	UIButton *loginBtn;
}
- (void)viewDidLoad {
    [super viewDidLoad];
	[self loadUI];
}
- (void)loadUI {
	[self configBackIcon:@"dhgfywegwygeydwcurvereciprocal"];
	self.navigationStyle = dhgfywegwygeydwreciprocaltransport;
	bgView = [[UIView alloc] init];
	bgView.backgroundColor = [UIColor whiteColor];
	[self.view addSubview:bgView];
	icon = [[UIImageView alloc] init];
	icon.image = [UIImage imageNamed:@"home_status_success"];
	[bgView addSubview:icon];
	titleLabel = [[UILabel alloc] init];
	titleLabel.font = [UIFont semiBold:18];
	titleLabel.text = @"Complete the change";
	titleLabel.textColor = @"#70D545".dhgfywegwygeydwlearneddesignate;
	[bgView addSubview:titleLabel];
	desLabel = [[UILabel alloc] init];
	desLabel.font = [UIFont regular:15];
	desLabel.text = @"you can now log in PHPocketPro";
	desLabel.textColor = @"#666666".dhgfywegwygeydwlearneddesignate;
	[bgView addSubview:desLabel];
	loginBtn = [UIButton buttonWithType:UIButtonTypeCustom];
	loginBtn.titleLabel.font = [UIFont semiBold:18];
	loginBtn.layer.cornerRadius = 10;
	loginBtn.backgroundColor = primary_color.dhgfywegwygeydwlearneddesignate;
	[loginBtn setTitle:@"Login" forState:UIControlStateNormal];
	[loginBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
	[bgView addSubview:loginBtn];
	[loginBtn addTarget:self action:@selector(loginAction) forControlEvents:UIControlEventTouchUpInside];
}
- (void)loginAction {
	if (![dfhgwhruebvhrheyoptionsaving isLogin]) {
		[dfhgwhruebvhrheyoptionsaving login:^{
			[self.navigationController popToRootViewControllerAnimated:NO];
		}];
	}
}
- (void)backAction {
	[self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)viewDidLayoutSubviews {
	[super viewDidLayoutSubviews];
	[bgView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop);
		make.left.bottom.right.equalTo(self.view);
	}];
	[icon mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(bgView).offset(40);
		make.centerX.equalTo(bgView);
		make.size.mas_equalTo(CGSizeMake(146, 137));
	}];
	[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(icon.mas_bottom).offset(33);
		make.centerX.equalTo(icon);
		make.height.mas_equalTo(27);
	}];
	[desLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(titleLabel.mas_bottom).offset(20);
		make.centerX.equalTo(titleLabel);
		make.height.mas_equalTo(24);
	}];
	[loginBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(desLabel.mas_bottom).offset(47);
		make.centerX.equalTo(desLabel);
		make.size.mas_equalTo(CGSizeMake(200, 50));
	}];
}
@end
